package com.wst.system.security.entity.dto;

import com.wst.system.security.entity.SysMenuEntity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class SysMenuEntityTreeDto extends SysMenuEntity implements Serializable {

    private List<SysMenuEntityTreeDto> children;

    private String parentName;

    public List<SysMenuEntityTreeDto> getChildren() {
        if(this.children==null){
            this.children=new ArrayList<SysMenuEntityTreeDto>();
        }
        return children;
    }

    public void setChildren(List<SysMenuEntityTreeDto> children) {
        this.children = children;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }
}
